//
//  Tweet.h
//  Echo
//
//  Created by Liao on 14/12/16.
//  Copyright (c) 2014年 sina. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Pic, User;

@interface Tweet : NSObject

@property (nonatomic, retain) NSString *mid;
@property (nonatomic, retain) NSString *cate;
@property (nonatomic, retain) User *owner;
@property (nonatomic, retain) NSString *text;
@property (nonatomic, retain) NSNumber *pic_nums;
@property (nonatomic, retain) NSArray *pics;
@property (nonatomic, retain) NSString *created_time;
@property (nonatomic) BOOL is_collected;

- (instancetype)initWithAttributes:(NSDictionary *)attributes;
+ (NSURLSessionDataTask *)tweetsOfCate:(NSString *)cate WithBlock:(void (^)(NSArray *Tweet, NSError *error))block;

@end